//
//  OCDistributorOrder.swift
//  OCDistributor
//
//  Created by Sam Chen on 2019/12/10.
//

/// 分销订单
public struct OCDistributorOrder: Codable {
    public let orderId: Int
    public let number: String
    public let status: String
    public let dateAdded: String
    public let name: String
    public let total: String

    /// 佣金
    public let commission: String

    private enum CodingKeys: String, CodingKey {
        case orderId
        case number
        case status
        case dateAdded
        case name
        case total
        case commission = "profit"
    }
}
